<!DOCTYPE html>

<html lang="en">

  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title><%= title %></title>
  </head>

  <link rel='stylesheet' href="/plugins/javascripts/bootstrap-5.0.1/dist/css/bootstrap.min.css" />
  <link rel='stylesheet' href="/plugins/javascripts/jquery-ui-1.12.1.custom/jquery-ui.min.css" />
  <link rel='stylesheet' href="/plugins/stylesheets/fontawesome-5.15.3/css/all.min.css" />
  <link rel='stylesheet' href='/plugins/javascripts/datatables.net-dt-1.10.25/css/jquery.dataTables.min.css' />
  <link rel='stylesheet' href='/plugins/stylesheets/jarvis.widget.min.css' />
  <link rel='stylesheet' href='/plugins/javascripts/select2-4.1.0-rc.0/dist/css/select2.min.css' />
  <link rel='stylesheet' href='/plugins/stylesheets/select2-bootstrap-5-theme/dist/select2-bootstrap-5-theme.min.css' />
  <link rel='stylesheet' href='/plugins/stylesheets/select2-bootstrap-5-theme/dist/select2-bootstrap-5-theme.rtl.min.css' />
  <link rel='stylesheet' href='/plugins/javascripts/sweetalert2/dist/sweetalert2.min.css' />
  
  <script src="/plugins/javascripts/jquery-3.6.0/dist/jquery.min.js"></script>
  <script src="/plugins/javascripts/jquery-ui-1.12.1.custom/jquery-ui.min.js"></script>
  <script src="/plugins/javascripts/bootstrap-5.0.1/dist/js/bootstrap.bundle.min.js"></script>
  <script src="/plugins/javascripts/datatables.net-1.10.25/js/jquery.dataTables.min.js"></script>
  <script src="/plugins/javascripts/jarvis.widget.min.js"></script>
  <script src="/plugins/javascripts/jarvis.widget.config.js"></script>
  <script src="/plugins/javascripts/select2-4.1.0-rc.0/dist/js/select2.min.js"></script>
  <script src="/plugins/javascripts/sweetalert2/dist/sweetalert2.all.min.js"></script>
  <script src="/plugins/javascripts/sweetalert2/dist/sweetalert2.min.js"></script>

  <link rel='stylesheet' href='/utils/css/style.css' />
  <script src="/utils/js/ajax.js"></script>


  <body>
    <button onclick="onClick()">Click</button>
  </body>

  <script>
    async function onClick () {
      let res = await $.getJSON('/main/index', {})
      console.log(res)
    }

    (() => {
      API_HOST = '<%= api_host %>'
    })()
  </script>

</html>
